package com.example.administrator.activity.General;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.administrator.activity.Homework.Homework6.homework_2.Homework6_SqlistActivity;
import com.example.administrator.activity.Homework.Homework7.NoteActivity;
import com.example.administrator.activity.R;
import com.example.administrator.activity.parcitise.Storage.Inner_output.FileInnerActivity;
import com.example.administrator.activity.parcitise.Storage.Inner_output.FileOuputActivity;
import com.example.administrator.activity.Homework.Homework6.Homework6_1.Homework6Activity;
import com.example.administrator.activity.parcitise.Storage.SQList.SQLiteActivity;
import com.example.administrator.activity.parcitise.Storage.QQ.SpQQActivity;
import com.example.administrator.activity.parcitise.Storage.SPActivity;

public class GeneralStorageActivity extends AppCompatActivity {

    Button btn1,nei,wai,qq,sqlist,PreHomework6,SqlList,note;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_general_storage);
        btn1=findViewById(R.id.ch3_strong_btn1);
        nei=findViewById(R.id.nei);
        wai=findViewById(R.id.wai);
        qq=findViewById(R.id.qq);
        sqlist=findViewById(R.id.sqlist);
        PreHomework6=findViewById(R.id.prehomework6);
        SqlList=findViewById(R.id.SQLlistHomework6);
        note=findViewById(R.id.note);
        View.OnClickListener clickListener=new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent;
                switch (v.getId()){
                    case R.id.ch3_strong_btn1:
                        intent=new Intent(GeneralStorageActivity.this,SPActivity.class);
                        startActivity(intent);
                        break;
                    case R.id.wai:
                        intent=new Intent(GeneralStorageActivity.this,FileOuputActivity.class);
                        startActivity(intent);
                        break;
                    case R.id.nei:
                        intent=new Intent(GeneralStorageActivity.this,FileInnerActivity.class);
                        startActivity(intent);
                        break;
                    case R.id.qq:
                        intent=new Intent(GeneralStorageActivity.this,SpQQActivity.class);
                        startActivity(intent);
                        break;
                    case R.id.sqlist:
                        intent=new Intent(GeneralStorageActivity.this,SQLiteActivity.class);
                        startActivity(intent);
                        break;
                    case R.id.prehomework6:
                        intent=new Intent(GeneralStorageActivity.this,Homework6Activity.class);
                        startActivity(intent);
                        break;

                    case R.id.SQLlistHomework6:
                        intent=new Intent(GeneralStorageActivity.this,Homework6_SqlistActivity.class);
                        startActivity(intent);
                        break;
                    case R.id.note:
                        intent=new Intent(GeneralStorageActivity.this,NoteActivity.class);
                        startActivity(intent);
                        break;
                }

            }
        };
        btn1.setOnClickListener(clickListener);
        nei.setOnClickListener(clickListener);
        wai.setOnClickListener(clickListener);
        qq.setOnClickListener(clickListener);
        sqlist.setOnClickListener(clickListener);
        PreHomework6.setOnClickListener(clickListener);
        SqlList.setOnClickListener(clickListener);
        note.setOnClickListener(clickListener);
    }

}
